package com.dao;

import com.model.PlacedHospital;
import com.po.AdvertisementIdAndHospitalIdPO;
import com.po.SysUserIdAndHospitalIdPO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PlacedHospitalMapper {
    int deleteByPrimaryKey(Long id);

//    int insert(PlacedHospital record);

    int insertSelective(PlacedHospital record);

    PlacedHospital selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PlacedHospital record);

//    int updateByPrimaryKey(PlacedHospital record);

    List<PlacedHospital> selectByCondition(PlacedHospital placedHospital);

//    List<PlacedHospital> selectBySysUserId(Long sysUserId);





    int bindAdvertsementIdsById(List<AdvertisementIdAndHospitalIdPO> list);

    int unbindAdvertisement(List<Long> list);

    int updateSysUserIdsById(List<SysUserIdAndHospitalIdPO> list);

    List<PlacedHospital> selectBySysUserId(Long sysUserId);

//    List<PlacedHospital> selectByAdvertisementId(Long advertisementId);
}